/**
 * 
 */
package ccrClasses.layer2;

import ccrClasses.ICcr;

/**
 * @author matheus
 *
 */
public class Type implements ICcr{
	
	public static final String OPEN_TAG = "<Type>";

	public static final String CLOSE_TAG = "</Type>";
	
	public static final String COLLECTION_START_DATE = "Collection start date";

	public static final String DISPENSE_DATE = "Dispense date";
	
	public static final String START_DATE = "Start date";

	public static final String STOP_DATE = "Stop date";

	public static final String PRESCRIPTION_DATE = "Prescription date";

	public static final String PHI = "Primary Health Insurance";

	public static final String SUPPLEMENTAL = "Supplemental Health Insurance";

	public static final String PRESCRIPTION = "Prescription Drug Benefit";

	public static final String DENTAL_INSURANCE = "Dental Insurance";

	public static final String VISION_INSURANCE = "Vision Insurance";

	public static final String OTHER = "Other";

	public static final String PLAN_CODE = "Plan code";

	public static final String GROUP_NUMBER = "Group number";
	
	public static final String SUBSCRIBER_NUMBER = "Subscriber number";
	
	private Text text;

	public Type() {
		super();
	}

	public Type(Text text) {
		super();
		this.setText(text);
	}

	/**
	 * @param text the text to set
	 */
	public void setText(Text text) {
		this.text = text;
	}

	/**
	 * @return the text
	 */
	public Text getText() {
		return text;
	}

	/**
	 * @return the sUBSCRIBER_NUMBER
	 */
	public String getSUBSCRIBER_NUMBER() {
		return SUBSCRIBER_NUMBER;
	}

	/**
	 * @return the gROUP_NUMBER
	 */
	public String getGROUP_NUMBER() {
		return GROUP_NUMBER;
	}

	/**
	 * @return the pLAN_CODE
	 */
	public String getPLAN_CODE() {
		return PLAN_CODE;
	}

	/**
	 * @return the oTHER
	 */
	public String getOTHER() {
		return OTHER;
	}
	
	/**
	 * @return the oPEN_TAG
	 */
	public String getOPEN_TAG() {
		return OPEN_TAG;
	}

	/**
	 * @return the cLOSE_TAG
	 */
	public String getCLOSE_TAG() {
		return CLOSE_TAG;
	}

	/**
	 * @return the cOLLECTION_START_DATE
	 */
	public String getCOLLECTION_START_DATE() {
		return COLLECTION_START_DATE;
	}

	/**
	 * @return the dISPENSE_DATE
	 */
	public String getDISPENSE_DATE() {
		return DISPENSE_DATE;
	}

	/**
	 * @return the sTART_DATE
	 */
	public String getSTART_DATE() {
		return START_DATE;
	}

	/**
	 * @return the sTOP_DATE
	 */
	public String getSTOP_DATE() {
		return STOP_DATE;
	}

	/**
	 * @return the pRESCRIPTION_DATE
	 */
	public String getPRESCRIPTION_DATE() {
		return PRESCRIPTION_DATE;
	}

	/**
	 * @return the pHI
	 */
	public String getPHI() {
		return PHI;
	}

	/**
	 * @return the sUPPLEMENTAL
	 */
	public String getSUPPLEMENTAL() {
		return SUPPLEMENTAL;
	}

	/**
	 * @return the pRESCRIPTION
	 */
	public String getPRESCRIPTION() {
		return PRESCRIPTION;
	}

	/**
	 * @return the dENTAL_INSURANCE
	 */
	public String getDENTAL_INSURANCE() {
		return DENTAL_INSURANCE;
	}

	/**
	 * @return the vISION_INSURANCE
	 */
	public String getVISION_INSURANCE() {
		return VISION_INSURANCE;
	}

	@Override
	public String constructCcrString() {		
		return new String(OPEN_TAG + text.constructCcrString() + CLOSE_TAG);
	}

}
